package com.youmingxing.network;

import android.app.DownloadManager;
import android.content.Context;

/**
 * @author evilyin(ChenZhixi)
 * @since 15/11/7
 */
public class GlobalDownloadManager {
    private static DownloadManager manager;

    public static DownloadManager getInstance(Context context) {
        if (manager == null) {
            manager = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE);
        }
        return manager;
    }

}
